package no.group.gowther.rest.vo.param;


import javax.validation.constraints.NotEmpty;
import java.util.Collections;
import java.util.List;

/**
 * @author ayatsuji
 * @date 2022-04-24 22:32
 * @since
 */
public class OnePieceCreateParam {
    @NotEmpty
    private String filePath;
    @NotEmpty
    private String name;
    private List<Long> tagId;

    public String getFilePath() {
        return filePath;
    }

    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<Long> getTagId() {
        return tagId;
    }

    public void setTagId(List<Long> tagId) {
        if (tagId == null) {
            this.tagId = Collections.emptyList();
            return;
        }
        this.tagId = tagId;
    }

    @Override
    public String toString() {
        return "AddOnePieceParam{" +
                "filePath=" + filePath +
                ", name='" + name + '\'' +
                ", tag=" + tagId +
                '}';
    }
}
